syntax = "proto3";

package xelbot.com.autonotes;

option go_package = "xelbot.com/auto-notes/server/proto";

message LoginRequest {
  string username = 1;
  string password = 2;
}

message RefreshTokenRequest {
  string token = 1;
}

message LoginResponse {
  string token = 1;
}

service Auth {
  rpc GetToken(LoginRequest) returns (LoginResponse);
  rpc RefreshToken(RefreshTokenRequest) returns (LoginResponse);
}
